

<html>
<body onload="load()" onResize="resize()" margin="0px">
<canvas id="myCanvas" width="100%" height="100%"></canvas>
<script src="util.js" type="text/javascript"></script>
<script src="wayfinder.js" type="text/javascript"></script>
<script src="crew.js" type="text/javascript"></script>

<script/>


var canvas = document.getElementById("myCanvas");
var M = [];


function load()
{
	pre_load_map()
	M = genmaze(5,5);
	//make_crew(1,canvas);
	//alert("mid"+crew.length);
	resize_to_window(canvas);
	wait_for_load(function(){render_maze(canvas,M);render_crew(canvas);setInterval(function(){crew_acts(M);render_maze(canvas,M);render_crew(canvas);}, 500);});

}

function resize()
{
	resize_to_window(canvas);
	render_maze(canvas,M);	
	render_crew(canvas);

}



</script>
</body>
</html>
